package com.iris.live.services.services.impl;

import com.iris.live.services.data.repositories.InitCustomCarConfigureRepository;
import com.iris.live.services.services.GroupAreaService;
import com.iris.live.services.services.InitCustomCarConfigureService;
import com.iris.live.services.vo.customcarconfigure.InitCustomCarConfigureVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yitianle on 2017/8/15.
 */
@Service
public class InitCustomCarConfigureServiceImpl  implements InitCustomCarConfigureService {

    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(InitCustomCarConfigureServiceImpl.class);

    @Autowired
    private InitCustomCarConfigureRepository initCustomCarConfigureRepository;

    @Override
    public List<InitCustomCarConfigureVo> initConfigure(Integer detailId, String bouId){
        List<InitCustomCarConfigureVo> list = null;
        try{
            list =  initCustomCarConfigureRepository.initConfigure(detailId,bouId);
        }catch (Exception e){
            logger.error("获取加配列表异常", e);
        }
        return list;
    }

}
